home *** CD-ROM | disk | FTP | other *** search
- Freunde,
-
- The unit FRAMEDLG.PAS implements a number of objects that allow the user to
- give a dialog the Borland chisseled steel lock without having to use
- BWCC.DLL.
-
- To use these objects create a dialog with Resource Workshop. Place a static
- control at those places where you want the raissed or recessed frames to
- appear. Set the Static Style control types to Black frame and assign a
- valid control id to the control. One last think to take care of: Make the
- static controls that will be displayed by the app as recessed or raised
- frames the first controls in the control order.
-
- In your Pascal program create the static controls with a call to
- PFrameUp.InitResource or PFrameDown.InitResource. That should be all that
- it takes. Please note that if the content of any controls that are inside
- of these frames are changed from another dialog you might have to call
- InvalidateRect to force them to repaint. Otherwise they might not get draw
- correctly by Windows. Line 255 - 259 in STATIC.PAS demonstrates such a case.
-
- FRAMEDLG.PAS implements the objects PSteelDlgWindow and PSteelDialog to
- display dialog windows that look similar to Borland's dialog boxes using
- BWCC.
-
- The source code both in STATIC.PAS and in FRAMEDLG.PAS should be
- self-explaining. To fully understand STATIC.PAS take a look at the RC or
- RES file in Resource Workshop as well. Note the various style bit for the
- static controls and the control numbering.
-
- If you want your frames to look different than the ones implemented by
- FRAMEDLG.PAS overwrite the PaintFrame method in objects derived from
- TFrameUp and TFrameDown.
-
- Good luck!
-
-
- Olaf Hess, CIS-ID 100 031, 35 36
-